package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课件
 * </p>
 *
 * @author zl
 * @since 2025-10-21
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("t_course_resource")
public class CourseResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程id
     */
    @TableField("course_id")
    private Long courseId;

    /**
     * 文件云地址
     */
    @TableField("resources")
    private String resources;

    /**
     * 资料类型：0课件，1其他
     */
    @TableField("type")
    private Integer type;
}